console.log('begin----------------------------');

var conference_id = state.formData.关联会议;
axios
.post("/summary/viewsets/",
  {
    conference_id: conference_id,
    publish_danwei: state.formData.发布单位,
    publish_time: state.formData.发布日期,
    title: state.formData.纪要标题,
    content: state.formData.纪要内容,
    print_danwei: state.formData.印发单位,
    print_time: state.formData.印发日期,
    paper_copy: state.formData.纸质份数,
    digital_copy: state.formData.电子份数,
  }
)
.then((res) => console.log(res.data))
console.log(222);
for (let i of state.formData.参会) {
  axios
  .post("/attend_situation/viewsets/",
    {
      person_id: i,
      situation: "参会",
      conference_id: conference_id
    }
  )
  .then((res) => res.data)
}

for (let i of state.formData.请假) {
  axios
  .post("/attend_situation/viewsets/",
    {
      person_id: i,
      situation: "请假",
      conference_id: conference_id
    }
  )
  .then((res) => res.data)
}
for (let i of state.formData.邀请) {
  axios
  .post("/attend_situation/viewsets/",
    {
      person_id: i,
      situation: "邀请",
      conference_id: conference_id
    }
  )
  .then((res) => res.data)
}
for (let i of state.formData.分送单位) {
  axios
  .post("/send/viewsets/",
    {
      summary_id: conference_id,
      danwei_id: i,
    }
  )
  state.formData.电子份数=i
  .then((res) => res.data)
}

console.log('end---------------------------');
